{if $show_searchform}
	<p>{$smarty.const.LA_ADMIN_USER_ADMINISTRATION_MORE}</p>

	<form method='post' action='adm_user_list.php'>
	<input type='text' id="find" name='find' value='{$find}' />&nbsp;
	
	<select name='last_login_before'>
	<option value=''>{$smarty.const.LA_ADMIN_ALL_KIND_USERS}</option>
	{$notseenlist}</select>
	
	&nbsp;<select name='number_of_ads'>
	<option value=''>{$smarty.const.LA_ADMIN_ALL_KIND_ADS}</option>
	{$numberofadslist}
	</select>
	&nbsp;<input type='submit' name='submit' value='{$smarty.const.LA_ADMIN_FIND_USER}' />
	</form>
{/if}

<!-- Messages -->
<center>
{if $msg}
	<p>{$msg}</p>
{elseif $delete_complete}
	<p><b>{$smarty.const.LA_ADMIN_DELETED}</b><br>{$smarty.const.LA_ADMIN_USER_DELETED_DESCR}</p>
{elseif $delete_confirm}
	<p><b class='red'>{$smarty.const.LA_ADMIN_PLEASE_COFIRM} {$name}</b><br />
	<a href='adm_user_list.php?delete={$delete_confirm}&confirmed=1&user_name={$name}'><b><u>{$smarty.const.LA_ADMIN_CONFIRM_YES} {$name}</u></b></a>
{/if}
</center>

<p>&nbsp;</p>
<p>{$url_bar}</p>

{if !$hide}
<table border='0' cellspacing='0' width='100%' class="box" style="clear:both;">
<tr>
	<th width="45%"><a class='navlink' href='?orderby=user_name&orderway=asc{$url_heading}' title='{$smarty.const.LA_ADMIN_SORT_BY} {$smarty.const.LA_ADMIN_NAME}'>{$smarty.const.LA_ADMIN_NAME}</a></th>
	<th width="15%"><a class='navlink' href='?orderby=user_date&orderway=desc{$url_heading}'  title='{$smarty.const.LA_ADMIN_SORT_BY} {$smarty.const.LA_ADMIN_JOINED}'>{$smarty.const.LA_ADMIN_JOINED}</a></th>
	<th width="15%"><a class='navlink' href='?orderby=user_date_last_login&orderway=desc{$url_heading}'  title='{$smarty.const.LA_ADMIN_SORT_BY} {$smarty.const.LA_ADMIN_LAST_LOGIN}'>{$smarty.const.LA_ADMIN_LAST_LOGIN}</a></th></td>
	<th width="10%"><a class='navlink' href='?orderby=user_num_ads&orderway=desc{$url_heading}' title='{$smarty.const.LA_ADMIN_SORT_BY} {$smarty.const.LA_ADMIN_A_DESCR}'>{$smarty.const.LA_ADMIN_A}</a></th>
	<th width="5%"><a class='navlink' href='?orderby=user_num_login&orderway=desc{$url_heading}' title='{$smarty.const.LA_ADMIN_SORT_BY} {$smarty.const.LA_ADMIN_L_DESCR}'>{$smarty.const.LA_ADMIN_L}</a></th>
	<th width="10%">{$smarty.const.LA_ADMIN_ACTION}</th>
</tr>

{foreach item=l from=$listArray}
	<tr class="{cycle values=",alt"}">
	<td><a href='adm_user.php?user_id={$l.user_id}{$url}' title='Show user details'>{$l.user_name}</a></td>
	<td>{$l.user_date}</td>
	<td>{$l.user_date_last_login}</td>
	<td>{$l.user_num_ads}</td>
	<td>{$l.user_num_login}</td>
	
	<td>
		<table cellpadding="0" cellspacing="0" style="margin:0px">
		<tr>
		<td><a href="adm_change_admin.php?user_id={$l.user_id}" title="{$smarty.const.LA_ADMIN_USER_EDIT_INFO}"><img src="../layout_images/new/edit_user.gif" align="left" alt="{$smarty.const.LA_ADMIN_USER_EDIT_INFO}" border="0" /></a></td>
		<td><a href='adm_classifieds_list.php?ads_by_user={$l.user_id}'  title='{$smarty.const.LA_ADMIN_VIEW_ADS_BY_USER}'><img src='../layout_images/new/view_ads.gif' align='left' alt='{$smarty.const.LA_ADMIN_VIEW_ADS_BY_USER}' border='0' /></a></td>
		<td>
		{if !$l.user_is_vendor}
		 <a href='?make_vendor=1&edit_user={$l.user_id}{$url_vendor}' title='{$smarty.const.LA_ADMIN_MARK_AS_VENDOR}'>
		 <img src='../layout_images/admin/not_vendor.gif' align='left' alt='{$smarty.const.LA_ADMIN_MARK_AS_VENDOR}' border='0' /></a>
		{else}
		<a href='?make_vendor=2&edit_user={$l.user_id}{$url_vendor}' title='{$smarty.const.LA_ADMIN_MARK_AS_NON_VENDOR}'>
		 <img src='../layout_images/admin/vendor.gif' align='left' border='0' alt='{$smarty.const.LA_ADMIN_MARK_AS_NON_VENDOR}' /></a>
		{/if}
		
		</td>
		<td><a href='?delete={$l.user_id}&edit_title={$l.user_name}{$url_delete}' title='{$smarty.const.LA_ADMIN_DELETE_USER}'><img src='../layout_images/new/delete.gif' alt='{$smarty.const.LA_ADMIN_DELETE_USER}' align='left' border='0' /></a></td>
		{if $approve_mem && !$l.user_approved}
		<td><a href='?activate={$l.user_id}{$url_approve}' title='{$smarty.const.LA_ADMIN_APPROVE_USER}'><img src='../layout_images/admin/check.gif' alt='{$smarty.const.LA_ADMIN_APPROVE_USER}'border='0' /></a></td>	
		{/if}
		
		</tr>
		</table>
	
	
	</td>
</tr>
{/foreach}

</table>


<p>{$url_bar}</p>
{/if}


{literal}
<script language="javascript">
<!--
content=document.getElementById("find");
if( content != null ){content.focus();}
-->
</script>
{/literal}